#!/bin/bash

set -e

cd "$(dirname "$0")"

docker compose down
docker compose up -d --build

sleep 2
curl http://127.0.0.1:9090/v1/schema > ./conf/apisix-dashboard/schema.json

docker compose restart apisix-dashboard
